package com.example.mybatis.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatis.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【user】的数据库操作Service
* @createDate 2024-10-31 09:22:56
*/

public interface UserService extends IService<User> {


    User getUserById(int id);
    List<User> getUserList();
    void saveUser(User user);
    void updateUser(User user);
    void updateUserById(int id, String name, String password);
    void deleteUser(Long id);
    Page<User> getPageUserList(int currentPage, int pageSize);

}
